package com.ctyun.xstore.vod.video.model;

import com.ctyun.xstore.vod.AbstractVODRequest;

public class CreateVideoRequest extends AbstractVODRequest {

	private final String name;

	private final VideoFileInfoBean fileInfo;

	private Long categoryId;

	public CreateVideoRequest(String name, VideoFileInfoBean fileInfo) {
		this.name = name;
		this.fileInfo = fileInfo;
	}

	public CreateVideoRequest(String name, VideoFileInfoBean fileInfo, Long categoryId) {
		this(name, fileInfo);
		this.categoryId = categoryId;
	}

	public String getName() {
		return name;
	}

	public VideoFileInfoBean getFileInfo() {
		return fileInfo;
	}

	public Long getCategoryId() {
		return categoryId;
	}

	public void setCategoryId(Long categoryId) {
		this.categoryId = categoryId;
	}

	@Override
	protected String getPath() {
		return "/video/create";
	}
}
